package org.hepeng.workx.jdbc;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.sql.DataSource;

/**
 * @author he peng
 */

@Getter
@Setter
@ToString
public class DataSourceInfo {

    private String id;
    private DataSource dataSource;
    private DataSourceOpsMode mode;

    public enum DataSourceOpsMode {
        READ_ONLY , WRITE_ONLY , READ_AND_WRITE
    }
}
